﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="IndexPage.aspx.cs" Inherits="EmployeesOrders.IndexPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <asp:ScriptManager runat="server">    </asp:ScriptManager>

        <asp:UpdatePanel ID="UpdatePanelEmployees" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
                <asp:GridView ID="GridViewEmployees" runat="server" AutoGenerateColumns="false" OnSelectedIndexChanged="Employees_IndexChanged">
                    <Columns>
                        <asp:BoundField DataField="ID" />
                        <asp:BoundField DataField="Name" />
                        <asp:BoundField DataField="Address" />
                        <asp:BoundField DataField="Phone" />
                        <asp:ButtonField DataTextField="Buttons" ButtonType="Button"   DataTextFormatString="ShowInfo" CommandName="select"/>
                    </Columns>
                </asp:GridView>
                
                <asp:Menu ID="MenuEmployees" runat="server">
                    
                </asp:Menu>
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="EmployeesTimer" EventName="Tick" />
            </Triggers>
        </asp:UpdatePanel>

        <asp:UpdateProgress runat="server" >
          <ProgressTemplate>
            LOADING
          </ProgressTemplate>
        </asp:UpdateProgress>

        <asp:UpdatePanel ID="UpdatePanelOrders" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
                    <asp:GridView ID="GridViewOrders" runat="server" >
                
                    </asp:GridView>
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="GridViewEmployees" EventName="SelectedIndexChanged" />
            </Triggers>
        </asp:UpdatePanel>
        


        <asp:Timer ID="EmployeesTimer" OnTick="EmployeesTimer_OnTick" runat="server" Interval="1000"></asp:Timer>
    </div>
    </form>
</body>
</html>
